package com.ruoyi.system.service.impl;

import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.ruoyi.system.mapper.ReservationTaskMapper;
import com.ruoyi.system.domain.ReservationTask;
import com.ruoyi.system.service.IReservationTaskService;

/**
 * 下载预约OTAService业务层处理
 * 
 * @author LGD
 * @date 2025-07-25
 */
@Service
public class ReservationTaskServiceImpl implements IReservationTaskService 
{
    @Autowired
    private ReservationTaskMapper reservationTaskMapper;

    /**
     * 查询下载预约OTA
     * 
     * @param reservationTaskId 下载预约OTA主键
     * @return 下载预约OTA
     */
    @Override
    public ReservationTask selectReservationTaskByReservationTaskId(Long reservationTaskId)
    {
        return reservationTaskMapper.selectReservationTaskByReservationTaskId(reservationTaskId);
    }

    /**
     * 查询下载预约OTA列表
     * 
     * @param reservationTask 下载预约OTA
     * @return 下载预约OTA
     */
    @Override
    public List<ReservationTask> selectReservationTaskList(ReservationTask reservationTask)
    {
        return reservationTaskMapper.selectReservationTaskList(reservationTask);
    }

    /**
     * 新增下载预约OTA
     * 
     * @param reservationTask 下载预约OTA
     * @return 结果
     */
    @Override
    public int insertReservationTask(ReservationTask reservationTask)
    {
        return reservationTaskMapper.insertReservationTask(reservationTask);
    }

    /**
     * 修改下载预约OTA
     * 
     * @param reservationTask 下载预约OTA
     * @return 结果
     */
    @Override
    public int updateReservationTask(ReservationTask reservationTask)
    {
        return reservationTaskMapper.updateReservationTask(reservationTask);
    }

    /**
     * 批量删除下载预约OTA
     * 
     * @param reservationTaskIds 需要删除的下载预约OTA主键
     * @return 结果
     */
    @Override
    public int deleteReservationTaskByReservationTaskIds(Long[] reservationTaskIds)
    {
        return reservationTaskMapper.deleteReservationTaskByReservationTaskIds(reservationTaskIds);
    }

    /**
     * 删除下载预约OTA信息
     * 
     * @param reservationTaskId 下载预约OTA主键
     * @return 结果
     */
    @Override
    public int deleteReservationTaskByReservationTaskId(Long reservationTaskId)
    {
        return reservationTaskMapper.deleteReservationTaskByReservationTaskId(reservationTaskId);
    }
}
